#!/bin/bash

# ----------------------------------------------------------------------
# Filename:   75551-python.sh
# Version:    1.0
# Date:       2013/11/29
# Author:     yuanhui.shi
# Email:      yuanhui.shi@cs2c.com.cn
# Summary:    02系统基本功能-07开发环境-01语言支持-01python语言
# Notes:      python语言
# Copyright:  China Standard Software Co., Ltd.
# History：     
#             Version 1.0, 2013/11/29
#             -   The first one
# ----------------------------------------------------------------------

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

source ../../lib/Echo.sh

source ../../lib/XmlParse.sh


function CleanData ()
{
  rm -rf hello.py
  EchoInfo "75551-python.sh执行完毕"
}

trap "CleanData" EXIT INT

#执行python文件
echo "#!/usr/bin/python" >hello.py
echo "print 'hello world!\n'" >>hello.py
[ "`python hello.py`" == "hello world!" ]
EchoResult "执行.py文件成功"

